﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
using System.Data;
using System.ComponentModel;

namespace YinfangWeb.BLL.Model
{
    /// <summary>
    /// webApi 请求记录
    /// </summary>
    [Table("WepApiActionLog")]
    public class ObjWepApiActionLog
    {
        /// <summary>
        /// logId
        /// </summary>         
        public Guid Id { get; set; }

        /// <summary>
        /// 请求的地址
        /// </summary>
        public string RequestUri { get; set; }

        /// <summary>
        /// controller名字
        /// </summary>
        public string ControllerName { get; set; }

        /// <summary>
        /// 操作的action
        /// </summary>
        public string ActionName { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public string Ip { get; set; }

        /// <summary>
        /// 浏览器标示
        /// </summary>
        public string Navigator { get; set; }

        /// <summary>
        /// 接口执行消耗毫秒的时间
        /// </summary>
        public double CostTime { get; set; }

        /// <summary>
        /// 提交开始执行接口的时间
        /// </summary>
        public DateTime EnterTime { get; set; }

        /// <summary>
        ///操作人的id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 访问时的token
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Comments { get; set; }

        /// <summary>
        /// 执行结果
        /// </summary>
        public string ExecuteResult { get; set; }

        /// <summary>
        /// 客户端hostname
        /// </summary>
        public string UserHostName { get; set; }

        /// <summary>
        /// 范围的前一个页面
        /// </summary>
        public string UrlReferrer { get; set; }

        /// <summary>
        /// 浏览器
        /// </summary>
        public string Browser { get; set; }

        /// <summary>
        /// 请求携带的参数
        /// </summary>
        public string Paramaters { get; set; }
    }
}